<?php
/**
 * Copyright (c) 2023-2222   All rights reserved.
 *
 * 创建时间：2023-03-09 13:13
 *
 * 项目：levs  -  $  - levmodulesCacheFileHelper.php
 *
 * 作者：likeqian
 */

//!defined('INLEV') && exit('Access Denied LEV');


namespace modules\levmodules\helpers;

use Lev;
use lev\helpers\cacheFileHelpers;

class levmodulesCacheFileHelper extends cacheFileHelpers
{

    public static function cacheDir($val = null)
    {
        if ($zipMdir = levmodulesSetHelper::zipMdir()) {
            $re = $zipMdir .'/runtime/'. ltrim(static::$cacheDir, '/');
        }else {
            $re = parent::cacheDir($val); // TODO: Change the autogenerated stub
        }
        return $re;
    }

    public static function getc($key, $checkTimeout = true)
    {
        if ($zipMdir = levmodulesSetHelper::zipMdir()) {
            return parent::getc($key, $checkTimeout); // TODO: Change the autogenerated stub
        }
        return null;
    }
}